<ui:composition template="/WEB-INF/templates/showcase.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:o="http://omnifaces.org/ui"
>
	<ui:define name="description">
		<p>
			The <code>&lt;o:resourceInclude&gt;</code> component can be used to catch the output from a JSP or Servlet
			resource and render it as output to the JSF writer. In effect, this allows you to include both Servlets and
			JSP pages in e.g. Facelets.
		</p>
		<p>
			Note that this isn't recommended as a lasting solution, but it might ease a migration from legacy JSP with
			smelly scriptlets and all on them to a more sane and modern Facelets application.
		</p>
	</ui:define>

	<ui:define name="demo">
		<p>
			Content before Servlet include
			<br/>
			<o:resourceInclude path="/testservlet" />
			<br/>
			Content after Servlet include
		</p>
	</ui:define>
</ui:composition>